package cn.gnp.framework.eeamis.service.goods;

import cn.gnp.framework.persist.pagination.Page;
import cn.gnp.framework.service.IBaseService;
import cn.gnp.framework.core.exception.NotCodeException;
import cn.gnp.framework.eeamis.model.goods.GoodsCodeModel;

public interface IGoodsCodeService extends IBaseService<GoodsCodeModel, Integer> {
    

    public Page<GoodsCodeModel> listAllByGoods(int pn, int goodsId);
    
    public void save(int goodsId, String[] codes);

    GoodsCodeModel buy(String username, int goodsId) throws NotCodeException;

}
